package com.adam.springbucks.aop;

/**
 * //返回类模板
 * @param <T>
 */
public class ResTypeBean<T> {
    private int code;
    private String info;
    private T data;


    public ResTypeBean(){};
    public ResTypeBean(int code,String info){
        this.code = code;
        this.info = info;
    }
    public ResTypeBean(int code,String info,T data){
        this.code = code;
        this.info = info;
        this.data = data;
    };

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}